package org.nidy.erp.utils;

public class CurrentThreadArgs {
    private static final ThreadLocal<Integer> currentThreadArgs = new ThreadLocal<>();
    public static void setCurrentId (Integer empId) {
        currentThreadArgs.set(empId);
    }

    public static Integer getCurrentId() {
        return currentThreadArgs.get();
    }

    public static void remove() {
        currentThreadArgs.remove();
    }
}
